xentrace: Allow xentrace to handle >4G of trace data.
authorKeir Fraser <keir.fraser@citrix.com>
Mon, 11 Feb 2008 09:46:21 +0000 (09:46 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Mon, 11 Feb 2008 09:46:21 +0000 (09:46 +0000)
commitd37035e9f9ee9dc1fddd3fc8fd541b91504b3d43
tree2b00b4b25c7ad724983251f2184ba9eb70cb137b
parent4be9201e8c34104b15ac2eda6b8c3092d7baa191
xentrace: Allow xentrace to handle >4G of trace data.
It was previously assert'ing when it hit 4G.

Also, because the trace buffer is not a power of 2 in size,
using modulo arithmetic to address the buffer does not work
when the index wraps around 2^32.

This patch fixes both issues, and as a side effect, removes all
integer division from the hypervisor side of the trace mechanism.

Signed-off-by: Michael A Fetterman <Michael.Fetterman@cl.cam.ac.uk>
tools/xentrace/xentrace.c
xen/common/trace.c
xen/include/public/trace.h